package com.niubi.yygh.hosp.testmongo;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends MongoRepository<User, String> {
  List<User> findByNameAndAge(String name, int age);

  List<User> findByNameLike(String name);
}